#ifndef GL_H
#define GL_H

#include "global.h"

#ifdef GLES
#include <GLES/gl.h>
#ifdef EGL
#include <GLES/egl.h>
typedef struct eglConnection {
	EGLDisplay display;
	EGLContext context;
	EGLSurface surface;
	NativeWindowType window;
} eglConnection;

#endif // EGL

#define glOrtho glOrthof

#else // GLES => GL
#include <GL/gl.h>
#endif

void glCheckError(const char* file, unsigned line);
#define GL_CHECK_ERROR() glCheckError(__FILE__, __LINE__);

#endif
/* vim:set ts=2 sts=2 sw=2 noexpandtab: */
